<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'attribute-form',
	'action'=>$this->pre_module_url.'/attribute/create',
)); ?>	
	<?php echo $form->hiddenField($model,'zca_id'); ?>
	<?php echo $form->hiddenField($model,'za_type',array('value'=>1 )); ?>	
	<?php echo $form->hiddenField($model,'za_photo',array('value'=>1 )); ?>	
	<div class="row">
		<?php echo $form->labelEx($model,'za_title'); ?>: 
		<?php echo $form->textField($model,'za_title',array('size'=>50,'maxlength'=>50,'class'=>'t_ipt')); ?>
		<?php echo $form->error($model,'za_title'); ?>
	</div>	
	<div class="row">
		<?php echo $form->labelEx($model,'za_value'); ?>&nbsp;&nbsp;&nbsp;&nbsp;: 
		<?php echo $form->textField($model,'za_value',array('size'=>50,'class'=>'t_ipt')); ?>
		<?php echo $form->error($model,'za_value'); ?><span class="c_999"><?php echo t('Attribute Note','adm') ?></span>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'za_search'); ?>: 
		<?php echo $form->radioButtonList($model,'za_search',Attribute::model()->getIsSreach()); ?>
		<?php echo $form->error($model,'za_search'); ?>
	</div>	

	<div class="row">
		<?php echo $form->labelEx($model,'za_text_type'); ?>: 
		<?php echo $form->radioButtonList($model,'za_text_type',Attribute::model()->getTextType()); ?>
		<?php echo $form->error($model,'za_text_type'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '保存' : '保存',array('class'=>'mem_btn mem_btn13')); ?> <input class="mem_btn mem_btn13 close" type="button" value="<?php echo t('Cancel','adm') ?>" onclick="$('.add_form').hide();">
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->

<script type="text/javascript">
function selectcolor(){
	$('#color').show();
	$('#Attribute_za_value').attr('onfocus','this.blur()');
}
function addcolor(name){
	var a=$('#Attribute_za_value').val();
	if(a==''){
		a=name;
	}else{
		a=a+','+name;
	}
	$('#Attribute_za_value').val(a);
}
</script>